/*
 * Copyright 2017 Baiyyy
 * @(#)TempDeviceDao.java
 */

package com.byyy.ccts.modules.cc.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byyy.ccts.modules.cc.entity.ccts.TSDeviceOptCmd;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by DELL on 2018-4-28.
 */
public interface DeviceOptCmdMapper extends BaseMapper<TSDeviceOptCmd> {

    /** 获取设备指令 */
    public List<TSDeviceOptCmd> getDeviceOptCmd(@Param("sn") String deviceSn, @Param("cmd") String cmd, @Param("state") String state);

    List<TSDeviceOptCmd> deviceOptCmdListPage(Page<TSDeviceOptCmd> page, @Param("ew") Wrapper<TSDeviceOptCmd> wrapper);

}
